var KisBpmFormSelectPropertiesCtrl = ['$scope', '$http', function ($scope, $http) {
    $scope.forms = [];
    $scope.initSelectedForm = function () {
        /*后台接口地址没有捕获异常*/
        $http.get("/activiti-explorer/formList").success(function (data, status, headers, config) {
            $scope.forms = data
            $scope.forms.forEach((item) => {
                if ($scope.property.value === item.formKey) {
                    $scope.selectedForm = item
                }
            })
        })
    }

    $scope.$watch('selectedForm', function (newValue, oldValue) {
        if (newValue) {
            $scope.property.value = newValue.formKey;
            // 存储属性的key和value信息到model
            $scope.updatePropertyInModel($scope.property);
        }
    });

}];